USE [ProductInfo]
GO

/****** Object:  Table [BaseInfo].[ProductProperty]    Script Date: 2014/6/11 23:15:14 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [BaseInfo].[ProductProperty](
	[ProductPropertyID] [int] IDENTITY(1,1) NOT NULL,
	[Code] [nvarchar](10) NOT NULL,
	[Long] [decimal](18, 2) NULL,
	[Width] [decimal](18, 2) NULL,
	[High] [decimal](18, 2) NULL,
	[Weight] [decimal](18, 2) NULL,
	[Volume] [decimal](18, 2) NULL,
	[Image] [nvarchar](200) NULL,
	[UPC] [nvarchar](15) NULL,
	[EAN] [nvarchar](15) NULL,
	[IsDel] [bit] NULL,
	[CreateUser] [nvarchar](10) NULL,
	[CreateTime] [datetime] NULL,
	[UpdateUser] [nvarchar](10) NULL,
	[UpdateTime] [datetime] NULL,
 CONSTRAINT [PK_ProductProperty] PRIMARY KEY CLUSTERED 
(
	[ProductPropertyID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_Long]  DEFAULT ((0)) FOR [Long]
GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_Wide]  DEFAULT ((0)) FOR [Width]
GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_High]  DEFAULT ((0)) FOR [High]
GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_Heavy]  DEFAULT ((0)) FOR [Weight]
GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_Volume]  DEFAULT ((0)) FOR [Volume]
GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_IsDel]  DEFAULT ((0)) FOR [IsDel]
GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_CreateUser]  DEFAULT (N'Pu') FOR [CreateUser]
GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_CreateTime]  DEFAULT (getdate()) FOR [CreateTime]
GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_UpdateUser]  DEFAULT (N'Pu') FOR [UpdateUser]
GO

ALTER TABLE [BaseInfo].[ProductProperty] ADD  CONSTRAINT [DF_ProductProperty_UpdateTime]  DEFAULT (getdate()) FOR [UpdateTime]
GO

